#pragma once
#include "cv.h"
#include "highgui.h"
#include <map>
#include <string>

class CImgTxtWriter
{
public:
	CImgTxtWriter(void);
	virtual ~CImgTxtWriter(void);
	IplImage* WriteText( std::string text, IplImage* img );
	IplImage* WriteText(std::string text, IplImage* img, std::string color );
	IplImage* WriteText(std::string text, IplImage* img, CvPoint pt );
	IplImage* WriteText(std::string text, IplImage* img, std::string color, CvPoint pt );
	
	void AddColor( std::string name, CvScalar c );
	void SetColor( std::string name );
	CvScalar GetColor( void );
	
	void SetLocation( CvPoint pt );
	CvPoint GetLocation( void );


protected:
	std::map<std::string, CvScalar> m_colorMap;
	
	CvScalar m_color;
	CvFont  m_font;
	CvPoint m_location;

};
